<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            perspective: 500px;
        }
       img{
        display: block;   
        margin: 100px auto;
        width: 300px;
        height: 200px;
        transition: all 1s;
       }
       img:hover{
           transform: rotate(360deg);
       }
    </style>
</head>
<body>
    <img src="../static/image/4.jpeg" alt="">
</body>
</html>